package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chen.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

//持久化层
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    //一对多查询
    Page<User> findPage(Page<User> page,@Param("nick") String nickName);
}
